﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpGen.Enums;

namespace SharpGen.Common
{
    public class SqlObject
    {
        private SqlObjectType _objectType;
        public SqlObjectType ObjectType
        {
            get { return _objectType; }
            set { _objectType = value; }
        }

        private object _data;
        public object Data
        {
            get { return _data; }
            set { _data = value; }
        }

        private string _id;
        public string ID
        {
            get { return _id; }
        }

        private string _className;
        public string ClassName
        {
            get { return _className; }
            set { _className = value; }
        }

        private string _fileName;
        public string FileName
        {
            get { return _fileName; }
            set { _fileName = value; }
        }

        private IList<SqlRelation> _relatedEntities = new List<SqlRelation>();
        public IList<SqlRelation> RelatedEntities
        {
            get { return _relatedEntities; }
        }

        public SqlObject(string id)
        {
            _objectType = SqlObjectType.NA;
            _id = id;
        }
    }
}
